package com.solution.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * UserLoginFailure
 */
@Entity
@Table(name="User_Login_Failure"
    ,schema="public"
)
public class UserLoginFailure extends AbstractPO
 {

	
	private static final long serialVersionUID = 1L;
	
    private UserLoginFailureId id;
    private UserInfo userInfo;

     @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="userInfoId", column=@Column(name="User_InfoID", nullable=false, precision=10, scale=0) ), 
        @AttributeOverride(name="attemptedOn", column=@Column(name="Attempted_On", length=23) ), 
        @AttributeOverride(name="iPAddress", column=@Column(name="IP_Address", length=20) ), 
        @AttributeOverride(name="createdBy", column=@Column(name="CreatedBy", nullable=false, length=50) ), 
        @AttributeOverride(name="createdOn", column=@Column(name="CreatedOn", nullable=false, length=23) ), 
        @AttributeOverride(name="modifiedBy", column=@Column(name="ModifiedBy", length=50) ), 
        @AttributeOverride(name="modifiedOn", column=@Column(name="ModifiedOn", length=23) ), 
        @AttributeOverride(name="rfu1", column=@Column(name="RFU1", length=100) ), 
        @AttributeOverride(name="rfu2", column=@Column(name="RFU2", length=100) ), 
        @AttributeOverride(name="rfu3", column=@Column(name="RFU3", length=100) ) } )
    public UserLoginFailureId getId() {
        return this.id;
    }
    
    public void setId(UserLoginFailureId id) {
        this.id = id;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="User_InfoID", nullable=false, insertable=false, updatable=false)
    public UserInfo getUserInfo() {
        return this.userInfo;
    }
    
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }




}


